package com.pms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pms.dao.OperatorMapper;
import com.pms.domain.Operator;
import com.pms.service.OperatorService;

/** 
* @ClassName: OperatorServiceImpl 
* @Description:  
* @author ZZW
* @date 2016年12月2日 下午5:55:48 
*  
*/
@Service
public class OperatorServiceImpl implements OperatorService {
	
	@Autowired
	OperatorMapper operatorMapper;

	@Override
	public void insertOperator(Operator operator) {
		operatorMapper.insertOperator(operator);
	}

	@Override
	public Operator selectByType(Integer operatorType) {
		return operatorMapper.selectByType(operatorType);
	}

	@Override
	public void updateByType(Operator operator) {
		operatorMapper.updateByType(operator);
	}

	@Override
	public List<Operator> getAll() {
		return operatorMapper.getAll();
	}

	@Override
	public void deleteOperator(Integer operatorType) {
		operatorMapper.deleteOperator(operatorType);
	}

}
